package com.zy.explore.generator.infrastructure.core.brick;

import com.zy.explore.generator.infrastructure.core.frm.BrickInfoFrm;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * description 生成Controller类
 *
 * @author 🇨🇳中国印🇨🇳
 * @date 2021年05月11日 21:53
 **/
@Slf4j
@Service
public class GenerationController {

    @Resource
    private GenerationJpaController generationJpaController;

    @Resource
    private GenerationMybatisController generationMybatisController;

    public void doGeneration(BrickInfoFrm frm) throws Exception {
        generationJpaController.doGeneration(frm);
        generationMybatisController.doGeneration(frm);
        log.info("创建Controller类文件成功");
    }

}
